<%--
  Created by IntelliJ IDEA.
  User: dcd
  Date: 2018/11/13
  Time: 4:16 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/taglibs.jspf" %>
<html>
<head>
    <meta name="decorator" content="list"/>
    <style>
        input {
            width: 100px;
        }
    </style>
</head>
<body>
<div>
    <h3>院外送出</h3>
    <form:form id="Form" modelAttribute="data" method="post" class="layui-form"
               action="">
        <table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
            <tr>
                <td>送检地点:</td>
                <td><form:input path="samSendHospitalId"/></td>
                <td>外送类型:</td>
                <td><form:select path="samSendType" dict="outGoingType" onchange="changeList()"/></td>
                <td>送出工号:</td>
                <td><form:input path="samSendUserCode"/><font color="red">*</font></td>
                <td>申请单号:</td>
                <td><form:input path="requisitionNo"/><font color="red">*</font></td>
            </tr>
            <tr>
                <td>检查项目:</td>
                <td><form:input path="samInspectionItemName" readonly="true"/></td>
                <td>患者姓名:</td>
                <td><form:input path="samPatientName" readonly="true"/></td>
                <td>标本个数:</td>
                <td><form:input path="sampleNum" readonly="true"/></td>
                <td>送检材料:</td>
                <td><form:input path="reqSendMaterial" readonly="true"/></td>
                <td>送检科室:</td>
                <td><form:input path="samSendDeptName" readonly="true"/></td>
                <td>送检医生:</td>
                <td><form:input path="samReqDocName" readonly="true"/></td>
            </tr>
        </table>
    </form:form>
</div>
<div id="sample">
    <grid:grid id="receiveGrid" url="${appPath}/preProcessing/inReceive/getList" queryGroup="3">
        <grid:column label="sys.send.time" name="reqReciveTime" query="true" queryMode="date"
                     condition="between" dateformat="yyyy-MM-dd hh:mm" query_showDateFmt="yy/MM/dd"
                     queryValue="${queryValue}"/>
        <grid:column label="sys.common.state" name="requisitionNo" query="true"/>
        <grid:column label="preProcessing:delivery:sendBatchNo" name="requisitionNo" query="true"/>
        <grid:column label="sys:patient:number" name="reqPatientNumber"/>
        <grid:column label="sys.patient.name" name="reqPatientName" query="true"/>
        <grid:column label="sys.patient.age" name="reqPatientAge" width="40"/>
        <grid:column label="sys.patient.sex" name="reqPatientSex" width="160"/>
        <grid:column label="sys.application.number" name="requisitionNo" query="true"/>
        <grid:column label="apply.inspection.project" name="reqItemNames" width="130"/>
        <grid:column label="preProcessing:inReceive:sampleNum" name="phone" width="100"/>
        <grid:column label="apply.label.barcode" name="reqSampleId" width="100"/>
        <grid:column label="apply.inspection.hospital" name="reqReceiveOrgId" width="100"/>
        <grid:column label="apply.inspection.doctor" name="reqDoctorName" width="100"/>
        <grid:column label="send.worker.name" name="reqDoctorName" width="100"/>
        <grid:toolbar function="search"/>
    </grid:grid>
</div>
<div id="paraffin">
    <grid:grid id="receiveGrid" url="${appPath}/preProcessing/inReceive/getList" queryGroup="3">
        <grid:column label="sys.common.state" name="requisitionNo" query="true"/>
        <grid:column label="sys.send.time" name="reqReciveTime" query="true" queryMode="date"
                     condition="between" dateformat="yyyy-MM-dd hh:mm" query_showDateFmt="yy/MM/dd"
                     queryValue="${queryValue}"/>
        <grid:column label="sys:patient:number" name="reqPatientNumber"/>
        <grid:column label="sys.patient.name" name="reqPatientName" query="true"/>
        <grid:column label="sys.patient.age" name="reqPatientAge" width="40"/>
        <grid:column label="sys.patient.sex" name="reqPatientSex" width="160"/>
        <grid:column label="sys.pathology.code" name="requisitionNo" query="true"/>
        <grid:column label="apply.inspection.project" name="reqItemNames" width="130"/>
        <grid:column label="sys.sample.paraffinNum" name="phone" width="100"/>
        <grid:column label="sys.sample.pieparts" name="reqSampleId" width="100"/>
        <grid:column label="sys.sample.paraffinNo" name="reqReceiveOrgId" width="100"/>
        <grid:column label="send.out.address" name="reqDoctorName" width="100"/>
        <grid:column label="apply.inspection.doctor" name="reqDoctorName" width="100"/>
        <grid:toolbar function="search"/>
    </grid:grid>
</div>
<div id="slide">
    <grid:grid id="receiveGrid" url="${appPath}/preProcessing/inReceive/getList" queryGroup="3">
        <grid:column label="sys.common.state" name="requisitionNo" query="true"/>
        <grid:column label="sys.send.time" name="reqReciveTime" query="true" queryMode="date"
                     condition="between" dateformat="yyyy-MM-dd hh:mm" query_showDateFmt="yy/MM/dd"
                     queryValue="${queryValue}"/>
        <grid:column label="sys:patient:number" name="reqPatientNumber"/>
        <grid:column label="sys.patient.name" name="reqPatientName" query="true"/>
        <grid:column label="sys.patient.age" name="reqPatientAge" width="40"/>
        <grid:column label="sys.patient.sex" name="reqPatientSex" width="160"/>
        <grid:column label="sys.pathology.code" name="requisitionNo" query="true"/>
        <grid:column label="apply.inspection.project" name="reqItemNames" width="130"/>
        <grid:column label="sys.sample.slideNum" name="phone" width="100"/>
        <grid:column label="sys.sample.pieparts" name="reqSampleId" width="100"/>
        <grid:column label="sys.sample.slislidecode" name="reqReceiveOrgId" width="100"/>
        <grid:column label="send.out.address" name="reqDoctorName" width="100"/>
        <grid:column label="apply.inspection.doctor" name="reqDoctorName" width="100"/>
        <grid:toolbar function="search"/>
    </grid:grid>
</div>
<script>
    function changeList() {
        var outGoingType = $('#outGoingType').val();
        if (outGoingType == 1) {
            $('#sample').show();
            $('#paraffin').hide();
            $('#slide').hide();
        }
        if (outGoingType == 2) {
            $('#sample').hide();
            $('#paraffin').show();
            $('#slide').hide();
        }
        if (outGoingType == 3) {
            $('#sample').hide();
            $('#paraffin').hide();
            $('#slide').show();
        }
    }
</script>
</body>
</html>
